﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using static System.Threading.Thread;

namespace UnitTest
{
    public class Common
    {
        public static void WriteCurrentTaskInfo(string taskName)
        {
            WriteLine($"{taskName} 的 id： {CurrentThread.ManagedThreadId}," +
                      $"是否是后台线程：{CurrentThread.IsBackground}," +
                      $"是否是线程池托管：{CurrentThread.IsThreadPoolThread}。");
        }
    }
}
